home *** CD-ROM | disk | FTP | other *** search
/ Know Your Hockey - The Greatest Player Resource / Know Your Hockey: The Greatest Player Resource.iso / hockey / director / ssqcst.cst / 00023_Script_Play opening media scripts < prev    next >
Text File  |  1998-09-28  |  2KB  |  46 lines

  1. -- plays the provideo followed by the intro soundtrack 
  2. global gClipOut, gOpning,gXCast,gbuttonstate
  3.  
  4. on playopening
  5.   puppetsound 0
  6.   puppetsprite 48, 1
  7.   set the type of sprite 48 = 16
  8.   set theone = (the number of member "PM" of castlib gXcast)+1
  9.   set the membernum of sprite 48 =theone
  10.   set mybutton = 25
  11.   set the membernum of sprite mybutton = the membernum of sprite mybutton +1
  12.   setat(gbuttonState, mybutton,2) 
  13.   set the blend of sprite 25 = 100
  14.   set the ink of sprite 48 = 32
  15.   set the locv of sprite 48 = 104
  16.   set the loch of sprite 48 = 148
  17.   set the visible of sprite 48 =1
  18.   clearIconStatus
  19.   set  gClipOut = the duration of member  theone -30 -- sets the end point for the script videoplayer
  20.   updatestage
  21.   set the movietime of sprite 48 = 0
  22.   ControlOn
  23.   set gOpning ="PS_PM"
  24.   setvideovolume
  25.   set the movierate of sprite 48 = 1
  26. end
  27.  
  28. -- controls the playback of the intro sequence
  29. -- when the user touches any button they reset gOpning to Empty
  30. --- thus making th script inactive
  31. on Opening
  32.   if gOpning = Empty then exit
  33.   if the movierate of sprite 48 = 0 then
  34.     set theone = (the number of member "Protitle")+1
  35.     set s = (the number of member "JRtitle" of castlib gXCast)+1
  36.     if s = Empty then exit
  37.     set theone = the name of member s of castlib gXCast
  38.     puppetsound theone --- put name of intro sound file here
  39.     setat(gbuttonstate,20,2)
  40.     set the membernum of sprite 20 =the membernum of sprite 20 +1
  41.     set the blend of sprite 20 = 100
  42.     updatestage
  43.     set gOpning = EMPTY    
  44.   end if
  45. end 
  46.